package data;

import java.util.Vector;

public class ConfigurationGraphData implements GraphData {
	
	private Vector<ConfigurationGraphObject> _ppp;

	public ConfigurationGraphData(Vector<ConfigurationGraphObject> ppp) {
		_ppp = ppp;
	}

	public Vector<ConfigurationGraphObject> get_ppp() {
		return _ppp;
	}

    @Override
    public String toString() {
        StringBuilder res = new StringBuilder("Configuration Output \n");
        if(_ppp.size()==0)
        	res.append("No configuration found. Please check your limits.");
        for(int i = 0; i<_ppp.size(); i++){
            res.append((i+1)+") "+ _ppp.get(i).toString()+"\n");
        }
        return res.toString();
    }
	
}
